package com.farmpost.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.farmpost.server.pojo.RespBean;
import com.farmpost.server.pojo.StuCertification;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDate;

/**
 * <p>
 * 学生认证表 服务类
 * </p>
 *
 * @author king
 * @since 2022-04-03
 */
public interface IStuCertificationService extends IService<StuCertification> {

    /**
     * 学生认证信息插入
     * @param stuId
     * @param userId
     * @param stuProfession
     * @param stuSchool
     * @param stuGraduateTime
     * @return
     */
    RespBean insertStu(Integer stuId, Integer userId, String stuProfession, String stuSchool, LocalDate stuGraduateTime);

    /**
     * 查询学生认证信息
     * @param userId
     * @return
     */
    StuCertification getStuInfo(Integer userId);

    /**
     * 学生头像上传
     * @param file
     * @return
     */
    RespBean uploadStuFace(MultipartFile file) throws Exception;
}
